gtkplacessidebar: Show drives with removable media
authorRoss Lagerwall <rosslagerwall@gmail.com>
Sun, 27 Sep 2015 14:59:49 +0000 (15:59 +0100)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Wed, 14 Oct 2015 16:38:25 +0000 (17:38 +0100)
Some drives have removable media that is not ejectable (e.g. a laptop's
SD card reader). Show volumes on these drives in the sidebar.

https://bugzilla.gnome.org/show_bug.cgi?id=755654

gtk/gtkplacessidebar.c

index 2ee7e9e86d9688ec8599ecad2ac316fd0b11d209..d8a21908adcd843e2a667831112688a5b8940b23 100644 (file)
@@ -840,7 +840,10 @@ is_removable_volume (GVolume *volume)
   is_removable |= !id;
 
   if (drive)
-    is_removable |= g_drive_can_eject (drive);
+    {
+      is_removable |= g_drive_can_eject (drive);
+      is_removable |= g_drive_is_media_removable (drive);
+    }
 
   if (mount)
     is_removable |= (g_mount_can_eject (mount) && !g_mount_can_unmount (mount));